<?php /* Smarty version Smarty-3.1.13, created on 2013-05-26 15:06:53
         compiled from ".\application\templates\historique.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2652351a2250deeba18-75987578%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8dc0cf0519a2d7042643886492cf8387b69c3111' => 
    array (
      0 => '.\\application\\templates\\historique.tpl',
      1 => 1369577899,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2652351a2250deeba18-75987578',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'connecte' => 0,
    'commandes' => 0,
    'commande' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51a2250e39a196_02020821',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51a2250e39a196_02020821')) {function content_51a2250e39a196_02020821($_smarty_tpl) {?><?php  $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars("setup", 'local'); ?>
<?php if ($_smarty_tpl->tpl_vars['connecte']->value=='oui'){?>
    <?php echo $_smarty_tpl->getSubTemplate ("headerConnecter.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>'foo'), 0);?>

<?php }else{ ?>
    <?php echo $_smarty_tpl->getSubTemplate ("headerDeconnecter.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>'foo'), 0);?>

<?php }?>
<p>Votre historique : </p><br />
<table>
    <tr>
        <th>Date</th>
        <th>ISBN</th>
        <th>Titre</th>
         <th>Quantité</th>
        <th>Prix</th>
    </tr>
    <?php  $_smarty_tpl->tpl_vars['commande'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['commande']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['commandes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['commande']->key => $_smarty_tpl->tpl_vars['commande']->value){
$_smarty_tpl->tpl_vars['commande']->_loop = true;
?>
        <tr>
            <td><?php echo $_smarty_tpl->tpl_vars['commande']->value['date'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['commande']->value['isbn'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['commande']->value['titre'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['commande']->value['qte'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['commande']->value['prix'];?>
</td>
        </tr>
    <?php } ?>

</table>

<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>